<html>
<head><meta charset="utf-8"><title>disabling default match bindings · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/disabling.20default.20match.20bindings.html">disabling default match bindings</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="207078877"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/disabling%20default%20match%20bindings/near/207078877" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> varkor <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/disabling.20default.20match.20bindings.html#207078877">(Aug 16 2020 at 16:50)</a>:</h4>
<p>Is there a convenient way I could disable default match bindings for a specific <code>StmtKind::Local</code>? Even a hacky way to do this for the time being, just to do some testing (in the context of <a href="https://github.com/rust-lang/rust/issues/71156">#71156</a>). I'm not sure who's most familiar with this code now.</p>



<a name="207509097"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/disabling%20default%20match%20bindings/near/207509097" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/disabling.20default.20match.20bindings.html#207509097">(Aug 20 2020 at 10:41)</a>:</h4>
<p><span class="user-mention" data-user-id="121053">@varkor</span> I know the code reasonably well</p>



<a name="207509099"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/disabling%20default%20match%20bindings/near/207509099" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/disabling.20default.20match.20bindings.html#207509099">(Aug 20 2020 at 10:41)</a>:</h4>
<p>I don't imagine it'd be too hard</p>



<a name="207509109"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/disabling%20default%20match%20bindings/near/207509109" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/disabling.20default.20match.20bindings.html#207509109">(Aug 20 2020 at 10:41)</a>:</h4>
<p>but you'll have to moify the code</p>



<a name="207509114"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/disabling%20default%20match%20bindings/near/207509114" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/disabling.20default.20match.20bindings.html#207509114">(Aug 20 2020 at 10:41)</a>:</h4>
<p>so I guess it depends on your def'n of convenient</p>



<a name="207509188"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/disabling%20default%20match%20bindings/near/207509188" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/disabling.20default.20match.20bindings.html#207509188">(Aug 20 2020 at 10:42)</a>:</h4>
<p>iirc there is some amount of information that gets passed donw in the <code>check_pattern</code> code or whatever it's called</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>